package duck.manager.impl;

import java.util.List;

import pojo.Attendmethod;
import duck.dao.impl.CommonDaoImpl;
import duck.manager.Attend;

public class AttendImpl  extends CommonDaoImpl implements Attend{

	public boolean delete(String number) throws Exception {
		Attendmethod m = get(number);
		return super.delete(m);
	}

	public  Attendmethod get(String number) throws Exception {
		String hql="from Attendmethod where amnumber='"+number+"'";
		Attendmethod m=(Attendmethod) super.loadByQueryUneue(hql);
		return m;
	}

	public boolean saveOrUpdate(Attendmethod m) throws Exception {
		return super.saveOrUpdate(m);
	}

	public List view() throws Exception {
		return super.loadAll("Attendmethod");
	}
	



}
